import tkinter
root = tkinter.Tk()
label=tkinter.Label(root,text="Python,tkinter!")
label.pack()
button1 = tkinter.Button(root,text="按钮1")
button1.pack(side=tkinter.LEFT)
button2 = tkinter.Button(root,text="按钮2")
button2.pack(side=tkinter.RIGHT)
root.mainloop()